home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 2001 November / macformat-109.iso / Demos / Alice Demo / demo / pak0.pk3 / scripts / liquid.shader < prev    next >
Encoding:
Text File  |  2000-11-20  |  19.5 KB  |  793 lines

  1. //chris lava 
  2. textures/liquid/alicelava
  3. {
  4.     surfaceparm lava
  5.     surfaceparm nolightmap
  6.     surfaceparm noimpact
  7.     surfaceparm cameraclip
  8.     q3map_globaltexture
  9.     qer_editorimage textures/liquid/lava1_3.tga
  10.     q3map_lightimage textures/liquid/lava1_3.tga
  11.     {
  12.         map textures/liquid/lava1_3.tga
  13.         tcMod turb 0.000000 0.200000 0.000000 0.05
  14.         tcmod scale .4 .4
  15.     }
  16. }
  17.  
  18. textures/liquid/alicelava-300
  19. {
  20.     surfacelight 300
  21.     surfaceparm lava
  22.     surfaceparm nolightmap
  23.     surfaceparm noimpact
  24.     surfaceparm cameraclip
  25.     q3map_globaltexture
  26.     qer_editorimage textures/liquid/lava1_3.tga
  27.     q3map_lightimage textures/liquid/lava1_3.tga
  28.     {
  29.         map textures/liquid/lava1_3.tga
  30.         tcMod turb 0.000000 0.200000 0.000000 0.05
  31.         tcmod scale .4 .4
  32.     }
  33. }
  34.  
  35. textures/liquid/alicelava-flowing-300
  36. {
  37.     surfacelight 300
  38.     surfaceparm lava
  39.     surfaceparm nolightmap
  40.     surfaceparm noimpact
  41.     surfaceparm cameraclip
  42.     q3map_globaltexture
  43.     qer_editorimage textures/liquid/lava1_3.tga
  44.     q3map_lightimage textures/liquid/lava1_3.tga
  45.     {
  46.         map textures/liquid/lava1_3.tga
  47.         //tcMod turb 0.000000 0.200000 0.000000 0.05
  48.         tcmod scale .4 .4
  49.         tcMod scroll 0.20000 0.20000
  50.     }
  51. }
  52.  
  53. textures/liquid/alicelava-flowing
  54. {
  55.     surfaceparm lava
  56.     surfaceparm nolightmap
  57.     surfaceparm noimpact
  58.     surfaceparm cameraclip
  59.     q3map_globaltexture
  60.     qer_editorimage textures/liquid/lava1_3.tga
  61.     q3map_lightimage textures/liquid/lava1_3.tga
  62.     {
  63.         map textures/liquid/lava1_3.tga
  64.         //tcMod turb 0.000000 0.200000 0.000000 0.05
  65.         tcmod scale .4 .4
  66.         tcMod scroll 0.30000 0.30000
  67.     }
  68. }
  69.  
  70. textures/liquid/watertest1
  71. {
  72. //    deformVertexes wave 100 sin 0.000000 2.000000 0.000000 0.200000
  73.     tessSize 128
  74.     surfaceparm nolightmap
  75.     surfaceparm nonsolid
  76.     surfaceparm trans
  77.     surfaceparm water
  78.     qer_editorimage textures/liquid/f2wtr_blu.tga
  79.     qer_trans 0.500000
  80.     {
  81.         map textures/liquid/f2wtr_blu.tga
  82.         blendFunc GL_DST_COLOR GL_SRC_COLOR
  83.         tcMod scale 0.500000 0.500000
  84.         tcMod scroll 0.010000 0.010000
  85.     }
  86.     {
  87.         map textures/liquid/f2wtr_blu.tga
  88.         blendFunc GL_DST_COLOR GL_SRC_COLOR
  89.         tcMod scale 0.500000 0.500000
  90.         tcMod scroll -0.010000 -0.010000
  91.         tcMod stretch sin 1.000000 0.100000 0.000000 0.050000
  92.     }
  93. }
  94.  
  95. textures/liquid/water1
  96. {
  97. //    deformVertexes wave 100 sin 0.000000 2.000000 0.000000 0.200000
  98.     tessSize 128
  99.     surfaceparm nolightmap
  100.     surfaceparm nonsolid
  101.     surfaceparm trans
  102.     surfaceparm water
  103.     qer_editorimage textures/liquid/f2wtr_blu.tga
  104.     qer_trans 0.500000
  105.     {
  106.         map textures/liquid/f2wtr_blu.tga
  107.         blendFunc GL_DST_COLOR GL_SRC_COLOR
  108.         tcMod scale 0.500000 0.500000
  109.         tcMod scroll 0.010000 0.010000
  110.     }
  111.     {
  112.         map textures/liquid/f2wtr_blu.tga
  113.         blendFunc GL_DST_COLOR GL_SRC_COLOR
  114.         tcMod scale 0.500000 0.500000
  115.         tcMod scroll -0.010000 -0.010000
  116.         tcMod stretch sin 1.000000 0.100000 0.000000 0.050000
  117.     }
  118. }
  119.  
  120. textures/liquid/water1-dimlight
  121. {
  122. //    deformVertexes wave 100 sin 0.000000 2.000000 0.000000 0.200000
  123.     tessSize 128
  124.     surfaceparm nolightmap
  125.     surfaceparm nonsolid
  126.     surfaceparm trans
  127.     surfaceparm water
  128.     qer_editorimage textures/liquid/f2wtr_blu.tga
  129.     qer_trans 0.500000
  130.     //q3map_surfacelight 1000
  131.     {
  132.         map textures/liquid/F2wtr_blu.tga
  133.         blendFunc GL_DST_COLOR GL_SRC_COLOR
  134.         tcMod scale 0.500000 0.500000
  135.         tcMod scroll 0.010000 0.010000
  136.     }
  137.     {
  138.         map textures/liquid/F2wtr_blu.tga
  139.         blendFunc GL_DST_COLOR GL_SRC_COLOR
  140.         tcMod scale 0.500000 0.500000
  141.         tcMod scroll -0.010000 -0.010000
  142.         tcMod stretch sin 1.000000 0.100000 0.000000 0.050000
  143.     }
  144. }
  145.  
  146. textures/liquid/water1-brightlight
  147. {
  148. //    deformVertexes wave 100 sin 0.000000 2.000000 0.000000 0.200000
  149.     tessSize 128
  150.     surfacelight 800
  151.     surfaceparm nolightmap
  152.     surfaceparm nonsolid
  153.     surfaceparm trans
  154.     surfaceparm water
  155.     qer_editorimage textures/liquid/f2wtr_blu.tga
  156.     qer_trans 0.500000
  157.     {
  158.         map textures/liquid/f2wtr_blu.tga
  159.         blendFunc GL_DST_COLOR GL_SRC_COLOR
  160.         tcMod scale 0.500000 0.500000
  161.         tcMod scroll 0.010000 0.010000
  162.     }
  163.     {
  164.         map textures/liquid/f2wtr_blu.tga
  165.         blendFunc GL_DST_COLOR GL_SRC_COLOR
  166.         tcMod scale 0.500000 0.500000
  167.         tcMod scroll -0.010000 -0.010000
  168.         tcMod stretch sin 1.000000 0.100000 0.000000 0.050000
  169.     }
  170. }
  171.  
  172. textures/liquid/water1-opaque
  173. {
  174. //    deformVertexes wave 100 sin 0.000000 2.000000 0.000000 0.200000
  175.     tessSize 128
  176.     surfaceparm nolightmap
  177.     surfaceparm nonsolid
  178.     surfaceparm trans
  179.     surfaceparm water
  180.     qer_editorimage textures/liquid/f2wtr_blu.tga
  181.     qer_trans 0.500000
  182.     {
  183.         map textures/liquid/f2wtr_blu.tga
  184.         blendFunc GL_DST_COLOR GL_SRC_COLOR
  185.         tcMod scale 0.500000 0.500000
  186.         tcMod scroll 0.010000 0.010000
  187.     }
  188.     {
  189.         map textures/liquid/f2wtr_blu.tga
  190.         blendFunc GL_DST_COLOR GL_SRC_COLOR
  191.         tcMod scale 0.500000 0.500000
  192.         tcMod scroll -0.010000 -0.010000
  193.         tcMod stretch sin 1.000000 0.100000 0.000000 0.050000
  194.     }
  195. }
  196.  
  197. textures/liquid/water2-dimlight
  198. {
  199. //    deformVertexes wave 100 sin 0.000000 2.000000 0.000000 0.200000
  200.     tessSize 128
  201.     surfaceparm nolightmap
  202.     surfaceparm nonsolid
  203.     surfaceparm trans
  204.     surfaceparm water
  205.     qer_editorimage textures/liquid/wtr_blu01.tga
  206.     qer_trans 0.500000
  207.     {
  208.         map textures/liquid/wtr_blu01.tga
  209.         blendFunc GL_DST_COLOR GL_SRC_COLOR
  210.         tcMod scale 0.500000 0.500000
  211.         tcMod scroll 0.010000 0.010000
  212.     }
  213.     {
  214.         map textures/liquid/wtr_blu01.tga
  215.         blendFunc GL_DST_COLOR GL_SRC_COLOR
  216.         tcMod scale 0.500000 0.500000
  217.         tcMod scroll -0.010000 -0.010000
  218.         tcMod stretch sin 1.000000 0.100000 0.000000 0.050000
  219.     }
  220.     {
  221.         map textures/liquid/wtr_blu01.tga
  222.         blendFunc GL_DST_COLOR GL_SRC_COLOR
  223.         tcMod scale 0.500000 0.500000
  224.         tcMod scroll 0.010000 -0.010000
  225.         tcMod stretch sin 1.000000 0.100000 0.000000 0.050000
  226.     }
  227. }
  228.  
  229. textures/liquid/water3-dimlight
  230. {
  231. //    deformVertexes wave 100 sin 0.000000 2.000000 0.000000 0.200000
  232.     tessSize 128
  233.     surfaceparm nolightmap
  234.     surfaceparm nonsolid
  235.     surfaceparm trans
  236.     surfaceparm water
  237.     qer_editorimage textures/liquid/wtr_blu02.tga
  238.     qer_trans 0.500000
  239.     {
  240.         map textures/liquid/wtr_blu03inv.tga
  241. //        blendFunc GL_DST_COLOR GL_ZERO
  242.         blendFunc GL_DST_COLOR GL_SRC_COLOR
  243.         tcMod scale 0.500000 0.500000
  244.         tcMod scroll 0.010000 0.010000
  245.     }
  246. }
  247.  
  248. textures/liquid/water4-farplane
  249. {
  250.     cull disable
  251. //    deformVertexes wave 100 sin 0.000000 5.000000 0.000000 0.200000
  252.     tessSize 128
  253.     surfaceparm nonsolid
  254.     surfaceparm trans
  255.     surfaceparm water
  256.     q3map_globaltexture
  257.     // surfaceparm nolightmap
  258.     qer_editorimage textures/liquid/wtr_farplane.tga
  259.     qer_trans 0.500000
  260.     {
  261.       map $lightmap
  262.         blendFunc GL_dst_color GL_zero
  263.         rgbgen identity
  264.     }
  265.     {
  266.           //map textures/testliq/1.tga
  267.         animmap 12 textures/testliq/1.tga textures/testliq/2.tga textures/testliq/3.tga textures/testliq/4.tga textures/testliq/5.TGA /textures/testliq/4.TGA textures/testliq/3.TGA textures/testliq/2.TGA
  268.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  269.         // blendFunc GL_SRC_ALPHA GL_ONE
  270.         tcMod turb 0.000000 0.100000 0.500000 0.0400000
  271.         // tcMod scroll 0.025000 0.040000
  272.         // tcMod scroll -0.050000 -0.030000
  273.     }
  274.     {
  275.         map textures/testliq/REF2.TGA
  276.         blendfunc gl_one gl_one
  277.         // blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  278.         tcGen environment
  279.     }
  280.     {
  281.         map textures/liquid/wtr_blu04inv.tga
  282.          blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  283.         // blendFunc GL_SRC_ALPHA GL_ONE
  284.         tcMod turb 0.000000 0.300000 0.000000 0.0300000
  285.         tcMod scroll 0.025000 0.040000
  286.         tcMod scroll -0.050000 -0.030000
  287.     }
  288. }
  289.  
  290. textures/liquid/water4-dimlight
  291. {
  292.     cull disable
  293. //    deformVertexes wave 100 sin 0.000000 8.000000 0.000000 0.200000
  294.     tessSize 128
  295.     surfaceparm nonsolid
  296.     surfaceparm trans
  297.     surfaceparm water
  298.     q3map_globaltexture
  299.     q3map_backshader bottomsurf
  300.     // surfaceparm nolightmap
  301.     qer_editorimage textures/liquid/wtr_blu04inv.tga
  302.     qer_trans 0.500000
  303.     {
  304.         map $lightmap
  305.         blendFunc GL_dst_color GL_zero
  306.         rgbgen identity
  307.     }
  308.     {
  309.         map textures/testliq/wtr_brown.tga
  310.          //blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  311.         blendFunc GL_ZERO GL_SRC_COLOR
  312.         alphaGen dot 1 .9
  313.         tcMod turb 0.000000 0.600000 0.000000 0.0300000
  314.         tcMod scale .2 .2
  315.     }
  316.     {
  317.           //map textures/testliq/1.tga
  318.         animmap 12 textures/testliq/1.tga textures/testliq/2.tga textures/testliq/3.tga textures/testliq/4.tga textures/testliq/5.TGA /textures/testliq/4.TGA textures/testliq/3.TGA textures/testliq/2.TGA
  319.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  320.         alphaGen dot .9 .5
  321.         // blendFunc GL_SRC_ALPHA GL_ONE
  322.         tcMod turb 0.000000 0.400000 0.500000 0.0400000
  323.         tcMod scale .4 .4
  324.     }
  325.     {
  326.         map textures/testliq/top3.tga
  327.         //blendFunc gl_dst_color gl_zero
  328.         blendfunc gl_zero gl_src_color
  329.         tcMod turb 0 1 0 .08
  330.         tcMod scale .05 .05
  331.     }
  332. }
  333.  
  334. textures/liquid/water5-nowave
  335. {
  336.     cull disable    
  337.     surfaceparm nonsolid
  338.     surfaceparm trans
  339.     surfaceparm water
  340.     q3map_globaltexture
  341.     q3map_backshader bottomsurf
  342.     // surfaceparm nolightmap
  343.     qer_editorimage textures/liquid/wtr_blu04inv.tga
  344.     qer_trans 0.500000
  345.     {
  346.         map $lightmap
  347.         blendFunc GL_dst_color GL_zero
  348.         rgbgen identity
  349.     }
  350.     {
  351.         map textures/testliq/wtr_brown.tga
  352.          //blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  353.         blendFunc GL_ZERO GL_SRC_COLOR
  354.         alphaGen dot 1 .9
  355.         tcMod turb 0.000000 0.600000 0.000000 0.0300000
  356.         tcMod scale .2 .2
  357.     }
  358.     {
  359.           //map textures/testliq/1.tga
  360.         animmap 12 textures/testliq/1.tga textures/testliq/2.tga textures/testliq/3.tga textures/testliq/4.tga textures/testliq/5.TGA /textures/testliq/4.TGA textures/testliq/3.TGA textures/testliq/2.TGA
  361.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  362.         alphaGen dot .9 .5
  363.         // blendFunc GL_SRC_ALPHA GL_ONE
  364.         tcMod turb 0.000000 0.400000 0.500000 0.0400000
  365.         tcMod scale .4 .4
  366.     }
  367.     {
  368.         map textures/testliq/top3.tga
  369.         //blendFunc gl_dst_color gl_zero
  370.         blendfunc gl_zero gl_src_color
  371.         tcMod turb 0 1 0 .08
  372.         tcMod scale .05 .05
  373.     }
  374. }
  375.  
  376. textures/liquid/testwater1
  377. {
  378.     cull disable
  379. //    deformVertexes wave 100 sin 0.000000 5.000000 0.000000 0.800000
  380.     tessSize 128
  381.     surfacelight 500
  382.     surfaceparm nonsolid
  383.     surfaceparm trans
  384.     surfaceparm water
  385.     q3map_globaltexture
  386.     surfaceparm nolightmap
  387.     qer_editorimage textures/liquid/wtr_test1.tga
  388.     qer_trans 0.500000
  389.     {         
  390.         animmap 14 textures/testliq/1.tga textures/testliq/2.tga textures/testliq/3.tga textures/testliq/4.tga textures/testliq/5.TGA /textures/testliq/4.TGA textures/testliq/3.TGA textures/testliq/2.TGA
  391.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  392.         tcMod turb 0.000000 0.40000 0.000000 0.060000
  393.         alphaGen dot 1 .3    
  394.         tcMod scale .4 .4
  395.     }
  396.     {
  397.         map textures/liquid/wtr_blu04inv.tga
  398.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  399.         // blendFunc GL_SRC_ALPHA GL_ONE        
  400.         tcMod turb 0.000000 0.300000 0.500000 0.100000
  401.         //tcMod scroll 0.025000 0.040000
  402.         //tcMod scroll -0.050000 -0.030000
  403.         tcMod scale .5 .5
  404.     }
  405.     {
  406.         map textures/testliq/topbr.tga
  407.         blendFunc add        
  408.         tcMod turb 0 1 0 .08
  409.         tcMod scale .05 .05
  410.     }
  411. }
  412.  
  413. // PGM -- for use on water sides not on the surface (between water brushes)
  414. textures/liquid/water_nodraw
  415. {
  416.     surfaceparm nonsolid
  417.     surfaceparm trans
  418.     surfaceparm nodraw
  419.     surfaceparm water
  420.     surfaceparm nolightmap
  421.     surfaceparm nomarks
  422.     qer_editorimage textures/liquid/liquid_nodraw.tga
  423.     qer_trans 0.500000
  424. }
  425.  
  426. textures/liquid/testwater3
  427. {
  428.     cull disable
  429.     //deformVertexes wave 256 sin 0.000000 8.000000 0.000000 0.3
  430.     deformVertexes wavenormal 128 0.04 0.03 0.0 sin 0 1 0 .3
  431.     tessSize 32
  432.     surfaceparm nonsolid
  433.     surfaceparm trans
  434.     q3map_globaltexture
  435.     surfaceparm water
  436.     surfaceparm nolightmap    
  437.     qer_editorimage textures/liquid/wtr_test3.tga
  438.     qer_trans 0.500000    
  439.     {
  440.         map textures/testliq/top.tga
  441.         blendFunc gl_zero gl_src_color
  442.         depthwrite
  443.         //tcMod turb 0 -.06 0.75 2
  444.         tcMod scroll -.08 -.08            
  445.     }
  446.     {
  447.         map textures/testliq/top2.tga
  448.         blendFunc gl_zero gl_src_color
  449.         //tcMod turb 0 .06 0.75 2
  450.         tcMod scroll .08 .08            
  451.     }    
  452.     {
  453.         map textures/liquid/shot0044.tga
  454.         //blendfunc gl_dst_color gl_zero
  455.         alphagen dot .7 0        
  456.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA        
  457.         tcMod scale 2 2
  458.         tcGen environment
  459.     }
  460. }
  461.  
  462. textures/liquid/bottomsurf
  463. {
  464. //    deformVertexes wave 100 sin 0.000000 8.000000 0.000000 0.200000
  465.     tessSize 128
  466.     surfaceparm nonsolid
  467.     surfaceparm trans
  468.     surfaceparm water
  469.     q3map_globaltexture
  470.     qer_editorimage textures/liquid/wtr_blu04inv.tga
  471.     qer_trans 0.500000
  472.     {
  473.         map textures/testliq/REF5.TGA
  474.         blendfunc gl_one gl_one
  475.         // blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  476.         tcGen environment
  477.     }
  478.     {
  479.           //map textures/testliq/1.tga
  480.         animmap 12 textures/testliq/1.tga textures/testliq/2.tga textures/testliq/3.tga textures/testliq/4.tga textures/testliq/5.TGA /textures/testliq/4.TGA textures/testliq/3.TGA textures/testliq/2.TGA
  481.         blendFunc GL_DST_COLOR GL_ZERO
  482.         // blendFunc GL_SRC_ALPHA GL_ONE
  483.         tcMod turb 0.000000 0.100000 0.500000 0.0400000
  484.     }    
  485. }
  486.  
  487. // DHM - just testing stuff
  488. // ------------------------
  489. textures/liquid/flowingwater1
  490. {
  491.     qer_editorimage liquid/water1_1.tga 
  492.      qer_trans 0.500000
  493.  
  494.     cull disable
  495.     //deformVertexes wave 64 sin 0.000000 3.000000 0.000000 0.50000
  496.     //tessSize 64
  497.     surfaceparm nonsolid
  498.     surfaceparm trans
  499.     q3map_globaltexture
  500.     surfaceparm water
  501.     {
  502.         map $lightmap
  503.         //blendFunc GL_dst_color GL_zero
  504.         //blendfunc gl_zero gl_src_color
  505.         rgbgen identity
  506.     }
  507.     {
  508.         map textures/liquid/water1_1.tga 
  509.         rgbGen identity
  510.         tcMod turb 0.0 0.4 0.5 0.3
  511.         tcMod scroll 0 -1.3
  512.         blendfunc filter
  513.         //tcMod rotate 90 0
  514.     }
  515.     {
  516.         //depthwrite
  517.             map models/fx/wfall/wfall2.tga
  518.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  519.         tcMod scale 0.198 0.25
  520.         tcMod turb 0.0 0.08 0.3 0.25
  521.         tcMod scroll 0.0000 -0.900000
  522.     }
  523. }
  524.  
  525. textures/liquid/bw_waterbak
  526. {
  527.     cull disable
  528. //    deformVertexes wave 100 sin 0.000000 3.000000 0.000000 0.30000
  529.     tessSize 128
  530.     surfaceparm nonsolid    
  531.     surfaceparm trans
  532.     q3map_globaltexture
  533.     surfaceparm water
  534.     surfaceparm nolightmap
  535.     qer_editorimage textures/testliq/bw_top.tga
  536.     qer_trans 0.500000
  537. if 0
  538.     {
  539.         map $lightmap
  540. //        depthwrite
  541.         blendFunc GL_dst_color GL_zero
  542.         rgbgen identity
  543.     }        
  544. endif
  545.     {         
  546.         animmap 14 textures/testliq/bw1.tga textures/testliq/bw2.tga textures/testliq/bw3.tga textures/testliq/bw4.tga textures/testliq/bw5.TGA /textures/testliq/bw4.TGA textures/testliq/bw3.TGA textures/testliq/bw2.TGA
  547.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  548.         //blendFunc GL_dst_color GL_zero
  549.         tcMod turb 0.000000 0.40000 0.000000 0.060000
  550.         //alphaGen constant .9
  551.         alphaGen dot .7 .6
  552.         //alphaGen oneminusdot 0.99 0.8
  553.         tcMod scale .6 .6
  554.     }
  555.     {
  556.         map textures/testliq/bw_top.tga
  557.         //blendFunc gl_zero gl_src_color
  558.         blendFunc GL_dst_color GL_zero        
  559.         tcMod turb 0 1 0 .1
  560.         tcMod scale .07 .07
  561.         tcMod scroll 0 -.03        
  562.     }
  563. }
  564.  
  565.  
  566. // flat opaque non-tesselating icy water for garden4
  567. // FIXME: this shader is temp. needs proper texture maps and stuff. (-IK)
  568. textures/liquid/flatwater2
  569. {
  570.     qer_editorimage liquid/wtr_test1.tga 
  571.     q3map_globaltexture
  572.     surfaceparm nonsolid
  573.     surfaceparm water
  574.     surfaceparm nomarks
  575.     qer_trans 0.500000
  576.     {
  577.         map $lightmap
  578.         rgbgen identity
  579.     }
  580.     {
  581.         map textures/liquid/wtr_blu03inv.tga  
  582.         rgbGen identity
  583.         tcMod scale 0.1 0.1
  584.         tcMod turb 0.0 0.1 0.15 0.2
  585.         tcMod scroll 0 0.01
  586.         blendfunc GL_ONE GL_SRC_COLOR
  587.     }
  588.     {
  589.         map textures/liquid/wtr_blu02inv.tga 
  590.         blendfunc GL_DST_COLOR GL_ZERO
  591.         tcMod scale 0.15 0.15
  592.         tcMod turb 0.0 0.08 0.3 0.25
  593.         tcMod scroll 0.01 -0.005
  594.     }
  595. }
  596.  
  597. // flat opaque non-tesselating swamp water to save r_speeds in tears.
  598. // FIXME: this shader is temp. needs proper texture maps and stuff. (-IK)
  599. textures/liquid/flatwater
  600. {
  601.     qer_editorimage liquid/wtr_test1.tga 
  602.     q3map_globaltexture
  603.     surfaceparm nonsolid
  604.     surfaceparm water
  605.     surfaceparm nomarks
  606.     qer_trans 0.500000
  607.     {
  608.         map $lightmap
  609.         rgbgen identity
  610.     }
  611.     {
  612.         map textures/liquid/wtr_test1.tga 
  613.         rgbGen identity
  614.         tcMod scale 0.1 0.1
  615.         tcMod turb 0.0 0.1 0.15 0.2
  616.         tcMod scroll 0 0.01
  617.         blendfunc GL_ONE GL_SRC_COLOR
  618.     }
  619.     {
  620.         map textures/liquid/wtr_blu02inv.tga 
  621.         blendfunc GL_DST_COLOR GL_ZERO
  622.         tcMod scale 0.15 0.15
  623.         tcMod turb 0.0 0.08 0.3 0.25
  624.         tcMod scroll 0.01 -0.005
  625.     }
  626. }
  627.  
  628. // testing.. for tears1 & 2
  629. textures/liquid/darkflowingwater1
  630. {
  631.     qer_editorimage liquid/water1_1.tga 
  632.      qer_trans 0.500000
  633.  
  634.     cull disable
  635.     surfaceparm nonsolid
  636.     surfaceparm trans
  637.     q3map_globaltexture
  638.     surfaceparm water
  639.     {
  640.         map $lightmap
  641.         rgbgen identity
  642.     }
  643.     {
  644.         map textures/liquid/water1_1.tga 
  645.         rgbGen identity
  646.         tcMod scale 0.5 0.5
  647.         tcMod turb 0.0 0.2 0.25 0.15
  648.         tcMod scroll 0 -1.3
  649.         blendfunc GL_ONE GL_SRC_COLOR
  650.     }
  651.     {
  652.             map models/fx/wfall/wfall2.tga
  653.         blendFunc GL_DST_COLOR GL_ONE_MINUS_SRC_ALPHA
  654.         tcMod scale 0.198 0.25
  655.         tcMod turb 0.0 0.08 0.3 0.25
  656.         tcMod scroll 0.0000 -0.900000
  657.     }
  658. }
  659.  
  660. textures/liquid/green_slime2_1
  661. {
  662.     cull none    
  663.     surfacelight 10
  664.     surfaceparm slime
  665.     q3map_globaltexture
  666.     surfaceparm nolightmap
  667.     surfaceparm noimpact
  668.     surfaceparm nonsolid
  669.     surfaceparm trans
  670.     qer_editorimage textures/liquid/green_slime2_1.tga
  671.     //q3map_lightimage textures/liquid/green_slime2_1.tga
  672.     qer_trans 0.500000    
  673.     {
  674.         map textures/liquid/green_slime1_1.tga
  675.         //blendFunc GL_DST_COLOR GL_SRC_COLOR
  676.         blendFunc GL_SRC_ALPHA GL_SRC_COLOR
  677.         alphagen dot 1 0
  678.         //blendfunc add
  679.         tcMod turb 0 0.1 0.75 0.2
  680.     }
  681.     {
  682.         map textures/liquid/green_slime2_1.tga
  683.         blendFunc GL_dst_color GL_one
  684.         //blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  685.         tcMod turb 0 0.1 0 0.2
  686.     }
  687.     //{
  688.     //    map textures/liquid/grey1.tga
  689.     //    blendfunc add
  690.     //    tcmod scale .2 .2
  691.     //    tcmod turb 0 .1 0 .1
  692.     //}
  693. }
  694.  
  695. textures/liquid/slime_nodraw
  696. {
  697.     surfaceparm nonsolid
  698.     surfaceparm trans
  699.     surfaceparm nodraw
  700.     surfaceparm slime
  701.     surfaceparm nolightmap
  702.     surfaceparm nomarks
  703.     surfaceparm noimpact
  704.     qer_editorimage textures/liquid/slime_nodraw
  705.     qer_trans 0.500000
  706. }
  707.  
  708. textures/queen/wall_ins_goop2
  709. {
  710.     cull none
  711.     //deformVertexes wave 100 sin .1 2 0 0.2
  712.     //tessSize 128
  713.     //surfacelight 10
  714.     surfaceparm slime
  715.     //surfaceparm nolightmap
  716.     surfaceparm noimpact
  717.     surfaceparm nonsolid
  718.     surfaceparm trans
  719.     qer_editorimage textures/queen/wall_ins_goop2.tga
  720.     //q3map_lightimage textures/queen/wall_ins_goop2.tga
  721.     qer_trans 0.500000
  722.     {
  723.         map $lightmap
  724.         rgbgen identity
  725.     }
  726.     {
  727.         map textures/queen/wall_ins_goop2.tga
  728.     //    blendFunc GL_DST_COLOR GL_SRC_COLOR
  729.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  730.         tcMod turb 0.000000 0.10000 0.100000 0.2
  731.     }
  732. }
  733.  
  734. //The water doesnt wave anymore but the tesselation is back.  It has to be in or the shader doesnt function.  Also I took the lightmap pass out, because it isnt needed.  It just adds to the polycount.  The water is now opaque.
  735. textures/liquid/tears2water
  736. {
  737.     deformVertexes wavenormal 512 0.04 0.03 0 sin 0 1 0 .3
  738.     tessSize 128
  739.     cull disable
  740.     surfaceparm nonsolid
  741.     //surfaceparm trans
  742.     q3map_globaltexture
  743.     surfaceparm water
  744.     surfaceparm nolightmap    
  745.     qer_editorimage textures/common/darkblue.tga
  746.     qer_trans 0.500000    
  747.     {
  748.         map textures/common/darkblue.tga
  749.         //blendfunc GL_ONE GL_SRC_COLOR
  750.         //depthwrite
  751.     }
  752.     {
  753.         map textures/effects/potears.tga        
  754.         alphagen dot .5 0        
  755.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA        
  756.         tcMod scale 2 2
  757.         tcGen environment
  758.     }
  759. }
  760.  
  761. // from "liquid/flowingblood"
  762. textures/liquid/tears2flowingwater
  763. {
  764.     qer_editorimage liquid/water1_blood.tga 
  765.      qer_trans 0.500000
  766.  
  767.     cull disable
  768.     //deformVertexes wave 64 sin 0.000000 3.000000 0.000000 0.50000
  769.     //tessSize 64
  770.     surfaceparm nonsolid
  771.     surfaceparm trans
  772.     q3map_globaltexture
  773.     surfaceparm water
  774.     surfaceparm nolightmap    
  775.     {
  776.         map textures/liquid/water1_blood.tga
  777.         depthwrite
  778.         blendfunc gl_zero gl_src_color            
  779.         tcMod turb 0.0 0.4 0.5 0.3
  780.         tcMod scroll 0 -1.3        
  781.     }
  782.     {        
  783.             map models/fx/wfall/wfall_blood.tga
  784.         //blendfunc gl_zero gl_src_color
  785.         //blendfunc add
  786.         blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
  787.         tcMod scale 0.198 0.25
  788.         tcMod turb 0.0 0.08 0.3 0.25
  789.         tcMod scroll 0.0000 -0.900000
  790.     }
  791. }
  792.  
  793.